package org.rcgwt.client.ui.validator.messages;

import org.rcgwt.client.ui.validator.events.MessageEvent;

import com.google.gwt.user.client.ui.Widget;

/**
 * A message manager interface. This message manager has the role of dispatch
 * messages between ValidatedTextField (Widgets in General) and MessagesDisplay
 * components.
 * 
 * @author Elian ORIOU
 * 
 */

public interface IMessageManager {

	void addField(Widget f);

	void valid();

	void addMessageEvent(MessageEvent me);

	void addMessageDisplay(IMessageDisplay md, Widget w);

	void addGlobalMessageDisplay(IMessageDisplay md);

	void dispatchMessages();

	void clearMessages();
}
